/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.storage.entity;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;

/**
 * 模块商品Entity
 */
@Table(name="biz_plate_goods", alias="a", columns={
		@Column(name="id", attrName="id", label="唯一标识", isPK=true),
		@Column(name="plate_id", attrName="plateId", label="模块Id"),
		@Column(name="plate_item_id", attrName="plateItemId", label="模块项Id"),
		@Column(name="sort", attrName="sort", label="顺序"),
		@Column(name="activity_id", attrName="activityId", label="活动id"),
		@Column(name="goods_id", attrName="goodsId", label="商品id"),
		@Column(name="create_by", attrName="createBy", label="创建者", isUpdate=false, isQuery=false),
		@Column(name="create_date", attrName="createDate", label="创建时间", isUpdate=false, isQuery=false),
		@Column(name="update_by", attrName="updateBy", label="更新者", isQuery=false),
		@Column(name="update_date", attrName="updateDate", label="更新时间", isQuery=false),
	}, orderBy="a.update_date DESC"
)
public class PlateGoods extends DataEntity<PlateGoods> {
	
	private static final long serialVersionUID = 1L;

	public String getPlateId() {
		return plateId;
	}

	public void setPlateId(String plateId) {
		this.plateId = plateId;
	}

	private String plateId;		// 模块Id

	public String getPlateItemId() {
		return plateItemId;
	}

	public void setPlateItemId(String plateItemId) {
		this.plateItemId = plateItemId;
	}

	private String plateItemId;		// 模块项Id

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	private Integer sort;		// 顺序
	private String activityId;		// 活动id
	private String goodsId;		// 商品id
	private Goods goods;//商品
	
	public PlateGoods() {
		this(null);
	}

	public PlateGoods(String id){
		super(id);
	}

	public String getActivityId() {
		return activityId;
	}

	public void setActivityId(String activityId) {
		this.activityId = activityId;
	}

	public String getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(String goodsId) {
		this.goodsId = goodsId;
	}

	public Goods getGoods() {
		return goods;
	}

	public void setGoods(Goods goods) {
		this.goods = goods;
	}
}